/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package telas;

import connection.EMF;
import dao.DAOGenerico;
import decorator.*;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.DefaultTableModel;
import model.Cliente;
import model.Pedido;

/**
 *
 * @author Dentinho
 */
public class RealizarPedido extends javax.swing.JDialog {
    private List listaCliente = null;
    private List<String> listaCpfs = new ArrayList<>();
    private Cliente clienteVenda = null;

    /**
     * Creates new form RealizarPedido
     */
    public RealizarPedido(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    RealizarPedido() {
        initComponents();
        setModal(true);
        desabilita();
    }

    private void desabilita() {
        recheioBolo.setEnabled(false);
        coberturaBolo.setEnabled(false);
        saborCBolo.setEnabled(false);
        saborRBolo.setEnabled(false);
        recheioCuca.setEnabled(false);
        coberturaCuca.setEnabled(false);
        saborCCuca.setEnabled(false);
        saborRCuca.setEnabled(false);
    }
    
    private void limpa(){
        bolo.setSelected(false);
        cuca.setSelected(false);
        recheioBolo.setSelected(false);
        recheioCuca.setSelected(false);
        coberturaBolo.setSelected(false);
        coberturaCuca.setSelected(false);
        saborCBolo.setText("");
        saborCCuca.setText("");
        saborRBolo.setText("");
        saborRCuca.setText("");
        qtdeBolo.setText("");
        qtdeCuca.setText("");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        bolo = new javax.swing.JCheckBox();
        cuca = new javax.swing.JCheckBox();
        panelBolo = new javax.swing.JPanel();
        recheioBolo = new javax.swing.JCheckBox();
        coberturaBolo = new javax.swing.JCheckBox();
        saborRBolo = new javax.swing.JTextField();
        saborCBolo = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        panelCuca = new javax.swing.JPanel();
        recheioCuca = new javax.swing.JCheckBox();
        coberturaCuca = new javax.swing.JCheckBox();
        saborRCuca = new javax.swing.JTextField();
        saborCCuca = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        qtdeBolo = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        qtdeCuca = new javax.swing.JTextField();
        btSalvar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tableClientes = new javax.swing.JTable();
        jLabel9 = new javax.swing.JLabel();
        textBuscaCliente = new javax.swing.JTextField();
        btSelecionaCliente = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        labelCliente = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Realizar Pedido");

        jLabel2.setText("Produto Base");

        bolo.setText("Bolo");
        bolo.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                boloMouseClicked(evt);
            }
        });

        cuca.setText("Cuca");
        cuca.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cucaMouseClicked(evt);
            }
        });

        panelBolo.setBackground(new java.awt.Color(255, 255, 255));

        recheioBolo.setText("Recheio");

        coberturaBolo.setText("Cobertura");

        jLabel4.setText("Sabor");

        jLabel5.setText("Sabor");

        javax.swing.GroupLayout panelBoloLayout = new javax.swing.GroupLayout(panelBolo);
        panelBolo.setLayout(panelBoloLayout);
        panelBoloLayout.setHorizontalGroup(
            panelBoloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBoloLayout.createSequentialGroup()
                .addGroup(panelBoloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelBoloLayout.createSequentialGroup()
                        .addComponent(recheioBolo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(saborRBolo, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelBoloLayout.createSequentialGroup()
                        .addComponent(coberturaBolo)
                        .addGap(12, 12, 12)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(saborCBolo)))
                .addContainerGap())
        );
        panelBoloLayout.setVerticalGroup(
            panelBoloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBoloLayout.createSequentialGroup()
                .addGroup(panelBoloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(recheioBolo)
                    .addComponent(saborRBolo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelBoloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(coberturaBolo)
                    .addComponent(saborCBolo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addGap(0, 0, Short.MAX_VALUE))
        );

        jLabel3.setText("Complementos");

        panelCuca.setBackground(new java.awt.Color(255, 255, 255));

        recheioCuca.setText("Recheio");

        coberturaCuca.setText("Cobertura");

        jLabel7.setText("Sabor");

        jLabel6.setText("Sabor");

        javax.swing.GroupLayout panelCucaLayout = new javax.swing.GroupLayout(panelCuca);
        panelCuca.setLayout(panelCucaLayout);
        panelCucaLayout.setHorizontalGroup(
            panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCucaLayout.createSequentialGroup()
                .addGroup(panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCucaLayout.createSequentialGroup()
                        .addComponent(coberturaCuca)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(saborCCuca, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(panelCucaLayout.createSequentialGroup()
                        .addComponent(recheioCuca)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(saborRCuca, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        panelCucaLayout.setVerticalGroup(
            panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCucaLayout.createSequentialGroup()
                .addGroup(panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(recheioCuca)
                    .addComponent(saborRCuca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(panelCucaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(coberturaCuca)
                        .addComponent(jLabel6))
                    .addComponent(saborCCuca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 20, Short.MAX_VALUE))
        );

        jLabel1.setText("Quantidade");

        jLabel8.setText("Quantidade");

        btSalvar.setText("Salvar");
        btSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSalvarActionPerformed(evt);
            }
        });

        tableClientes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nome", "Cpf"
            }
        ));
        jScrollPane1.setViewportView(tableClientes);

        jLabel9.setText("Buscar Cliente");

        textBuscaCliente.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                textBuscaClienteKeyReleased(evt);
            }
        });

        btSelecionaCliente.setText("Selecionar");
        btSelecionaCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btSelecionaClienteActionPerformed(evt);
            }
        });

        jLabel10.setText("Cliente: ");

        labelCliente.setText("*");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bolo)
                            .addComponent(qtdeBolo, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(panelBolo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(23, 23, 23)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cuca)
                                    .addComponent(panelCuca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(20, 20, 20)
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(qtdeCuca, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(265, 265, 265)
                        .addComponent(btSalvar))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(textBuscaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 269, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(btSelecionaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(48, 48, 48)
                                .addComponent(jLabel10)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(labelCliente)))))
                .addContainerGap(111, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(textBuscaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btSelecionaCliente)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel10)
                        .addComponent(labelCliente)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(bolo)
                    .addComponent(cuca))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(jLabel3))
                    .addComponent(panelBolo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelCuca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(qtdeBolo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addComponent(qtdeCuca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(btSalvar)
                .addGap(97, 97, 97))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSalvarActionPerformed
        Pedido pedido;
        DAOGenerico dao = new DAOGenerico(EMF.getEm(), Pedido.class);
        if (bolo.isSelected()) {
            pedido = new Pedido();
            ProdutoAbstrato bolo = new Bolo();
            if (coberturaBolo.isSelected()) {
                bolo = new Cobertura(bolo,saborCBolo.getText());
            }
            if (recheioBolo.isSelected()) {
                bolo = new Recheio(bolo,saborRBolo.getText());
            }
            pedido.setProduto(bolo.getDescricao());
            pedido.setValor(bolo.getCusto());
            pedido.setQuantidade(Integer.parseInt(qtdeBolo.getText()));
            dao.salvar(pedido);
        }
        if (cuca.isSelected()) {
            pedido = new Pedido();
            ProdutoAbstrato cuca = new Cuca();
            if (coberturaCuca.isSelected()) {
                cuca = new Cobertura(cuca,saborCCuca.getText());
            }
            if (recheioCuca.isSelected()) {
                cuca = new Recheio(cuca,saborRCuca.getText());
            }
            pedido.setProduto(cuca.getDescricao());
            pedido.setQuantidade(Integer.parseInt(qtdeCuca.getText()));
            pedido.setValor(cuca.getCusto());
            pedido.setCliente(clienteVenda);
            dao.salvar(pedido);
        }
        limpa();
    }//GEN-LAST:event_btSalvarActionPerformed

    private void boloMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_boloMouseClicked
        if (bolo.isSelected()) {
            recheioBolo.setEnabled(true);
            coberturaBolo.setEnabled(true);
            saborCBolo.setEnabled(true);
            saborRBolo.setEnabled(true);
        } else {
            recheioBolo.setEnabled(false);
            coberturaBolo.setEnabled(false);
            saborCBolo.setEnabled(false);
            saborRBolo.setEnabled(false);
        }
    }//GEN-LAST:event_boloMouseClicked

    private void cucaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cucaMouseClicked
        if (cuca.isSelected()) {
            recheioCuca.setEnabled(true);
            coberturaCuca.setEnabled(true);
            saborCCuca.setEnabled(true);
            saborRCuca.setEnabled(true);
        } else {
            recheioCuca.setEnabled(false);
            coberturaCuca.setEnabled(false);
            saborCCuca.setEnabled(false);
            saborRCuca.setEnabled(false);
        }
    }//GEN-LAST:event_cucaMouseClicked

    private void textBuscaClienteKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textBuscaClienteKeyReleased
        DefaultTableModel tabela = (DefaultTableModel) tableClientes.getModel();
        tabela.setNumRows(0);
        DAOGenerico<Cliente> dao = new DAOGenerico<>(EMF.getEm(), Cliente.class);
        if (!textBuscaCliente.getText().equals("")) {
            listaCliente = dao.buscarNome(Cliente.class, textBuscaCliente.getText());
            List<Object[]> lista = listaCliente;
            tabela.setNumRows(0);
            for (Object[] resultElement : lista) {
                String name = (String) resultElement[0];
                String cpf = (String) resultElement[1];
                listaCpfs.add(cpf);
                System.out.println(name);
                tabela.addRow(new String[]{name, cpf});
            }
        }
        if (listaCliente.size() > 0) {
            btSelecionaCliente.setEnabled(true);
        } else {
            btSelecionaCliente.setEnabled(false);
        }
        tableClientes.setModel(tabela);
    }//GEN-LAST:event_textBuscaClienteKeyReleased

    private void btSelecionaClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelecionaClienteActionPerformed
        int linha = tableClientes.getSelectedRow();
        DAOGenerico<Cliente> dao = new DAOGenerico<>(EMF.getEm(), Cliente.class);
        clienteVenda = (Cliente) dao.buscarCpf(Cliente.class, listaCpfs.get(linha));
        labelCliente.setText(clienteVenda.getNome());
//        System.out.println(tableClientes.getSelectedRow());
//        System.out.println(listaCpfs.get(linha));
    }//GEN-LAST:event_btSelecionaClienteActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(RealizarPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(RealizarPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(RealizarPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(RealizarPedido.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the dialog
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                RealizarPedido dialog = new RealizarPedido(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox bolo;
    private javax.swing.JButton btSalvar;
    private javax.swing.JButton btSelecionaCliente;
    private javax.swing.JCheckBox coberturaBolo;
    private javax.swing.JCheckBox coberturaCuca;
    private javax.swing.JCheckBox cuca;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel labelCliente;
    private javax.swing.JPanel panelBolo;
    private javax.swing.JPanel panelCuca;
    private javax.swing.JTextField qtdeBolo;
    private javax.swing.JTextField qtdeCuca;
    private javax.swing.JCheckBox recheioBolo;
    private javax.swing.JCheckBox recheioCuca;
    private javax.swing.JTextField saborCBolo;
    private javax.swing.JTextField saborCCuca;
    private javax.swing.JTextField saborRBolo;
    private javax.swing.JTextField saborRCuca;
    private javax.swing.JTable tableClientes;
    private javax.swing.JTextField textBuscaCliente;
    // End of variables declaration//GEN-END:variables
}
